using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class AreaConfiguration : EntityTypeConfiguration<Area>
    {
        public AreaConfiguration()
        {
            Property(g => g.AreaID).IsRequired();
            Property(g => g.Created).IsOptional();
            Property(g => g.Modified).IsOptional();
            Property(g => g.Name).IsOptional();
            Property(g => g.UseForGoodsIn).IsOptional();
            Property(g => g.UseForGoodsOut).IsOptional();
            Property(g => g.UseForPicking).IsOptional();
            Property(g => g.UseForReplenish).IsOptional();
            Property(g => g.UseForStorage).IsOptional();
            Property(g => g.UseForTransfer).IsOptional();
            Property(g => g.ClientID).IsOptional();
        }
    }
}
